package com.example.demo.design.GoF.command.example;

/**
 * //具体命令2
 *
 * @author luowj12
 * @since 2021/5/8 16:16
 */
public class ConcreteCommand2 implements Command {
    private Receiver2 receiver;
    ConcreteCommand2() {
        receiver = new Receiver2();
    }
    @Override
    public void execute() {
        receiver.action();
    }
}
